package com.coin.service;

import com.coin.domain.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coin.model.RolePrivilegesParam;

import java.util.List;

/**
 * @author 李力
 * @description 针对表【sys_role_privilege(角色权限配置)】的数据库操作Service
 * @createDate 2025-05-24 17:08:03
 */
public interface SysRolePrivilegeService extends IService<SysRolePrivilege> {

    /**
     * @Description: 根据角色ID查询菜单
     * @Author: 李 力
     * @Date: 2025/5/27
     * @Param: roleId
     * @return: R
     */
    List<SysMenu> getMenusByRoleId(Long roleId);


    /**
     * @Description: 授予角色某种权限
     * @Author: 李 力
     * @Date: 2025/5/27
     * @Param: rolePrivilegesParam
     * @return: R
     */
    boolean grantPrivileges(RolePrivilegesParam rolePrivilegesParam);
}
